package com.woniuxy.entity;

import java.util.Set;

public class Chinese implements Person{
    private String name;
    private int age;
    private Wife wife;
    private Set<Wife> wifes;

    public Chinese() {
    }

    public Chinese(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public Chinese(String name, int age, Wife wife) {
        this.name = name;
        this.age = age;
        this.wife = wife;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void setWife(Wife wife) {
        this.wife = wife;
    }

    public void setWifes(Set<Wife> wifes) {
        this.wifes = wifes;
    }

    @Override
    public void eat() {
        System.out.println("我爱吃火锅！");
    }

    @Override
    public String toString() {
        return "Chinese{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", wife=" + wife +
                ", wifes=" + wifes +
                '}';
    }
}